package com.hxy.Test;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字");
        int num = sc.nextInt();
        switch (num) {
            case 1 -> System.out.println("机票查询");
            case 2 -> System.out.println("机票预订");
            case 3 -> System.out.println("机票改签");
            default -> System.out.println("退出服务");
        }
        System.out.println("键盘录入整数");
        int num2 = sc.nextInt();
        switch (num2) {
            case 1:
                System.out.println("查询");
                break;
            case 2:
                System.out.println("预订");
                break;
            case 3:
                System.out.println("改签");
                break;
            default:
                System.out.println("退出服务");
                break;
        }
    }
}
